package com.shuaigexue.aicodegenerate.response;

import com.fasterxml.jackson.annotation.JsonProperty;
import lombok.Data;

@Data
public class RandomImageResponse {
    
    @JsonProperty("code")
    private String code;
    
    @JsonProperty("imgurl")
    private String imgUrl;
    
    @JsonProperty("width")
    private String width;
    
    @JsonProperty("height")
    private String height;
    
    public boolean isSuccess() {
        return "200".equals(code);
    }
}